#include "entity.h"
#include "sprite.h"


entity::entity(int ix,int iy,sprite* isprite){
x=ix;
y=iy;
entitysprite=isprite;

}

void entity::Draw(){

 entitysprite->SpriteDraw(x,y);

}

void entity::SetX(float nx){
	x=nx;
}

void entity::SetY(float ny){
	y=ny;
}

float entity::GetX(){
	return x;
}

float entity::GetY(){
	return y;
}

sprite* entity::GetSprite(){
	return entitysprite;
}
void entity::SetSprite(sprite* ns){
	entitysprite = ns;
}


